@import "_reset.scss";
$fontsize:40px;

@function potorem($w) {
    @return ($w/$fontsize)*1rem;
}

@mixin kuangao($w, $h) {
    width: potorem($w);
    height: potorem($h);
}

.footer-word {
    text-decoration: none;
    color: #8b8b8b;
}

html,
body {
    width: 100%;
    height: 100%;
}

.web {
    width: potorem(640px);
    height: 100%;
    position: relative;

    .heard {
        @include kuangao(640px, 89px);

        background-color: #b20000;
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;

        // overflow: hidden;
        .navigation {
            @include kuangao(53px, 43px);


            // background-color: pink;
            .demo {
                font-size: potorem(40px);
                color: white;
            }
        }

        .logo {
            @include kuangao(264px, 39px);


            // background-color: blue;
            img {
                width: 100%;
                height: 100%;
            }

            .demo2 {
                font-size: potorem(30px);
                color: white;
                font-weight: bold;
            }
        }

        .magnifier {
            @include kuangao(43px, 43px);
            border-radius: 50%;
            border: potorem(5px) solid white;
            text-align: center;

            .demo3 {
                font-size: potorem(43px);
                color: white;
            }
        }
    }

    .footer {
        @include kuangao(640px, 97px);
        border-top: potorem(1px) solid #bbb9ba;
        background-color: #f5f5f5;
        position: absolute;
        bottom: 0;
        left: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;

        li {
            width: 20%;
            height: potorem(77px);
            position: relative;

            .footericon {

                height: potorem(41px);
                text-align: center;
                font-size: potorem(40px);
                color: #8b8b8b;
            }

            .footer-content {
                text-align: center;
                line-height: potorem(41px);
                font-size: potorem(18px);
                color: #8b8b8b;
            }

        }

        li:nth-child(3) {
            height: potorem(77px);

            .footericon {
                color: #b60005;
            }

            .footer-content {
                color: #b60005;
            }
        }

        li:not(:last-of-type) {
            &::after {
                content: '';
                display: block;
                @include kuangao(1px, 51px);
                background-color: #e9e9e9;
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
            }
        }
    }

    .content {
        width: potorem(640px);
        position: absolute;
        left: 0;
        top: potorem(89px);
        right: 0;
        bottom: potorem(97px);
        overflow: auto;

        .line {
            @include kuangao(640px, 6px);
        }

        .content-heard {
            @include kuangao(640px, 342px);
            background-image: url(../img3/taizijinkeli.jpg);
            background-size: 100% 100%;
            position: relative;

            .mask {
                @include kuangao(640px, 104px);
                background-color: rgba(0, 0, 0, .5);
                position: absolute;
                bottom: 0;
                left: 0;
                display: flex;
                flex-direction: column;
                justify-content: space-around;
                align-items: center;

                .mask-content {
                    @include kuangao(591px, 38px);
                    display: flex;

                    li:first-child {
                        background-color: red;
                        color: white;
                        font-size: potorem(27px);
                        text-align: center;
                        line-height: potorem(38px);
                    }

                    li:last-child {
                        font-size: potorem(27px);
                        line-height: potorem(38px);
                        color: white
                    }
                }

                .spot {
                    @include kuangao(73px, 8px);
                    display: flex;
                    justify-content: space-between;

                    li {
                        @include kuangao(9px, 9px);
                        border-radius: 50%;
                        background-color: white;

                        &:hover {
                            background-color: red;
                        }
                    }
                }
            }
        }

        .commodity {
            @include kuangao(640px, 1200px);
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;

            .commodity-content {
                @include kuangao(600px, 343px);
                display: flex;
                justify-content: space-around;

                .introduce {
                    @include kuangao(282px, 343px);
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;

                    .introduce-img {
                        @include kuangao(282px, 182px);

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }

                    .introduce-content {
                        @include kuangao(278px, 49px);

                        p {
                            font-size: potorem(22px);
                            color: #010101;
                            // text-align: justify;
                        }
                    }

                    .introduce-number {
                        @include kuangao(278px, 27px);
                        display: flex;
                        justify-content: space-between;

                        .Marketing {
                            @include kuangao(88px, 27px);
                            background-color: #b20000;
                            color: white;
                            font-size: potorem(18px);
                            text-align: center;
                            line-height: potorem(27px);
                        }

                        .iconfont-number {
                            @include kuangao(145px, 27px);
                            display: flex;
                            justify-content: space-between;

                            .sfont {
                                color: #c5c5c5;
                                font-size: potorem(20px);
                                text-align: center;
                                line-height: potorem(27px);
                            }
                        }
                    }

                    .introduce-time {
                        @include kuangao(260px, 35px);
                        display: flex;
                        align-items: center;
                        justify-content: space-between;

                        .time-img {
                            @include kuangao(35px, 35px);

                            img {
                                width: 100%;
                                height: 100%;
                            }
                        }

                        .time-content {
                            @include kuangao(215px, 18px);
                            color: #c5c5c5;
                            font-size: potorem(18px);
                        }
                    }
                }
            }
        }

        .load-more {
            width: potorem(583px);
            height: potorem(57px);
            margin: 0 auto;

            border-top: potorem(3px) solid #dddddd;
            font-size: potorem(22px);
            letter-spacing: 1px;
            color: #bbbbbb;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
}